package com.exmaple.baidumv.info;

import android.content.Context;

import com.yuelan.codelib.utils.SDCardUtil;

public class ConFigFile {
	public static final String SD_Path = SDCardUtil.getSDCardPath();

	public static void creatSDCardFolder(Context context) {
		SDCardUtil.createFolder(getDMKJ_Path(context));
		SDCardUtil.createFolder(getSD_AppPath(context));
		SDCardUtil.createFolder(getSD_Picture(context));
		SDCardUtil.createFolder(getSD_Log(context));
		SDCardUtil.createFolder(getSD_Info(context));
		SDCardUtil.createFolder(getSD_ApkPath(context));
	}

	private static String getDMKJ_Path(Context context) {
		return SD_Path + "/BaiduMv";
	}

	private static String getSD_AppPath(Context context) {
		return getDMKJ_Path(context) + "/" + context.getPackageName();
	}

	public static String getSD_Picture(Context context) {
		return getSD_AppPath(context) + "/" + "picture";
	}

	public static String getSD_Log(Context context) {
		return getSD_AppPath(context) + "/" + "log";
	}

	public static String getSD_Info(Context context) {
		return getSD_AppPath(context) + "/" + "info";
	}

	public static String getSD_ApkPath(Context context) {
		return getSD_AppPath(context) + "/" + "apk";
	}

	// info
	public static final String File_MAININFO = "maininfo.info";
	
//	public static final String URL_MAIN = "http://182.92.65.247:58080/BaiduMv";
	public static final String URL_MAIN = "http://192.168.199.226:8080/BaiduMv";
}
